package com.aaa.mrcai.controller;

import com.aaa.mrcai.query.LogQuery;
import com.aaa.mrcai.result.AjaxResult;
import com.aaa.mrcai.service.LogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ Author: Lining
 * @ Date: 2021/12/19 21:03
 */

@RestController
@RequestMapping("log")
public class LogController {

    @Autowired
    private LogService logService;

    @RequestMapping("list")
    public AjaxResult list(LogQuery logQuery){
        return logService.list(logQuery);
    }

    @RequestMapping("/getOne/{id}")
    public AjaxResult getOne(@PathVariable("id") int id){
        return  logService.getOne(id);
    }
}
